import Vue from 'vue';
import App from './App';

Vue.config.productionTip = false;
App.mpType = 'app';

const app = new Vue(App);
app.$mount();

export default {
  // 这个字段走 app.json
  config: {
    // 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
    pages: [
      '^pages/me/main',
      'pages/index/main',
      'pages/comments/main',
      'pages/cart/main',
      'pages/me/main',
      'pages/books/main',
      'pages/logs/main',
    ],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#EE5522',
      navigationBarTitleText: '西西网上书店',
      navigationBarTextStyle: 'black',
    },
    tabBar: {
      selectedColor: '#EE5522',
      list: [
        {
          pagePath: 'pages/index/main',
          text: '首页',
          iconPath: 'static/img/book.png',
          selectedIconPath: 'static/img/book-active.png',
        },
        {
          pagePath: 'pages/comments/main',
          text: '书评',
          iconPath: 'static/img/book.png',
          selectedIconPath: 'static/img/book-active.png',
        },
        {
          pagePath: 'pages/cart/main',
          text: '购物车',
          iconPath: 'static/img/book.png',
          selectedIconPath: 'static/img/book-active.png',
        },
        {
          pagePath: 'pages/me/main',
          text: '我的',
          iconPath: 'static/img/book.png',
          selectedIconPath: 'static/img/book-active.png',
        },
      ],
    },
  },
};
